This is an adaptation of the "Hangman" game. The object of the game is simple -- to guess all the letters in the word or phrase before the hanged man is completely drawn. If you've never played Hangman, just think of it as Wheel of Fortune with no wheel, no Vanna White, no Pat Sajak, no money, and no prizes.
Guessing a letter is simple -- click the desired letter, which will then disappear. If the letter is found in the phrase, all occurrences of it are exposed; if not, one body part is added to the hanged man. Six incorrect guesses and "You're Dead".
How it's Done
There are over 300 phrases in the Paradox file PHRASES, indexed by the "Record Number" field. When "New Game" is clicked, the @RAND DLL is used in conjunction with the @LOCATE function to randomly select a new puzzle. The OVLOOPS DLL is then used to build the value in the "Puzzle" field, replacing each alphabetic character with a CHR(127).
As each letter is clicked, an event is sent to the form, which in turn checks to see if a legitimate character has been pressed, and responds accordingly. If the character is contained in the field "Answer", the OVLOOPS DLL is once again used to uncover all instances of that letter.